import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import '../../widget/my_image.dart';
class CommentItem extends StatefulWidget {
  @override
  _CommentItemState createState() => _CommentItemState();
}

class _CommentItemState extends State<CommentItem> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        children: [
          Divider(),
          Row(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              Container(
                width: 50.w,
                height: 50.w,
                child: ClipRRect(
                  borderRadius: BorderRadius.all(Radius.circular(25.w)),
                  child: MyImage(
                    imgSrc: 'https://img.tupianzj.com/uploads/allimg/202005/9999/e2091c6f38.jpg',
                  ),
                ),
              ),
              SizedBox(width: 15.w,),
              Text('赵子***德萨发'),
              SizedBox(width: 15.w,),
              Icon(Icons.star,color: Colors.red,size: 28.sp,),
              Icon(Icons.star,color: Colors.red,size: 28.sp,),
              Icon(Icons.star,color: Colors.red,size: 28.sp,),
              Icon(Icons.star,color: Colors.red,size: 28.sp,),
            ],
          ),
          SizedBox(height:15.w),
          Row(
            children: [
              Text('2020-027-10 11:45',style: TextStyle(
                  color: Colors.grey
              ),),
              SizedBox(width: 10.w,),
              Text('商品名称',style: TextStyle(
                color: Colors.grey
              ),)
            ],

          ),
          SizedBox(height:15.w),
          Text('商品评论商品评论商品评论商品评论商品评论商品评论商品评论商品评论商品评论商品评论商品评论商品评论商品评论商品评论'),
          Divider()
        ],
      ),
    );
  }
}
